package com.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.core.page.PageUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统菜单表
 *
 * @author yangzhan
 * @email *****@mail.com
 * @date 2022-04-02 19:00:58
 */
@Data
@TableName("system_menu")
public class SystemMenuEntity extends PageUtils implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("id")
    private Integer id;

    /**
     * 名称
     */
    @TableField("title")
    private String title;

    /**
     * 菜单图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 链接
     */
    @TableField("href")
    private String href;

    /**
     * 链接打开方式
     */
    @TableField("target")
    private String target;

    /**
     * 菜单排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 状态(0:禁用,1:启用)
     */
    @TableField("status")
    private Integer status;

    /**
     * 备注信息
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_at")
    private Date createAt;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_at")
    private Date updateAt;

    /**
     * 删除时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("delete_at")
    private Date deleteAt;

    /**
     *
     */
    @TableField("pid")
    private Integer pid;

    @TableField("perms")
    private String perms;


    private boolean checked;

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }
}
